import request from '@/utils/request'

// 查询banner1管理列表
export function listBanner1(query) {
  return request({
    url: '/om/banner1/list',
    method: 'get',
    params: query
  })
}

// 查询banner1管理详细
export function getBanner1(bannerId) {
  return request({
    url: '/om/banner1/' + bannerId,
    method: 'get'
  })
}

// 新增banner1管理
export function addBanner1(data) {
  return request({
    url: '/om/banner1',
    method: 'post',
    data: data
  })
}

// 修改banner1管理
export function updateBanner1(data) {
  return request({
    url: '/om/banner1',
    method: 'put',
    data: data
  })
}

// 删除banner1管理
export function delBanner1(bannerId) {
  return request({
    url: '/om/banner1/' + bannerId,
    method: 'delete'
  })
}
